package com.whately.core.base.annotation;


import java.lang.annotation.*;

/**
 * https://my.oschina.net/Lady/blog/1814825
 * 密钥类型  access key
 * 添加注解@ClientRequestSign，需求是哪些controller类或方法需要加密或者签名加上对应注解即可实现
 *
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ClientRequestSign {

    ClientRequestSignType value() default ClientRequestSignType.ACCESS_KEY;

    enum ClientRequestSignType {

        /**
         * 签名
         */
        ACCESS_KEY,
    }
}
